package com.cloud.lawcase.common.openapi;

import java.util.List;

import com.github.pagehelper.PageInfo;

public class OpenApiPageInfo {
	private long total;
	private List<Object> list;
	private int pageNum;
	private int pageSize;

	public OpenApiPageInfo() {
	}

	@SuppressWarnings("unchecked")
	public OpenApiPageInfo(@SuppressWarnings("rawtypes") PageInfo info) {
		this.total = info.getTotal();
		this.list = info.getList();
		this.pageNum = info.getPageNum();
		this.pageSize = info.getPageSize();
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public List<Object> getList() {
		return list;
	}

	public void setList(List<Object> list) {
		this.list = list;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

}
